/*
 * @Author: cgl
 * @Date: 2023-04-19 14:57:57
 * @LastEditors: cgl
 * @LastEditTime: 2023-06-06 18:18:06
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\slides\abnormal.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询该季节单位下所有异常人员(分页)
export function exceptionalRecordDetailsPage(data) {
  return request({
    url: '/biz/exceptional/recordDetails/queryPage',
    method: 'post',
    data,
  })
}
// 删除异常详情
export function removeExceptional(detailsId) {
  return request({
    url: '/biz/exceptional/recordDetails/removeExceptional/' + detailsId,
    method: 'get'
  })
}
// 获取待处理数据
export function exceptionalRecordDetailsIInfo(recordId) {
  return request({
    url: '/biz/exceptional/recordDetails/getCordInfo/' + recordId,
    method: 'get'
  })
}
// 保存上传文件
export function uploadHandleFile(data) {
  return request({
    url: `/biz/exceptional/recordDetails/uploadHandleFile`,
    method: "post",
    data,
  });
}
// 提交处理异常监测数据
export function updateHandle(data) {
  return request({
    url: `/biz/exceptional/recordDetails/updateHandle`,
    method: "post",
    data,
  });
}
// // 上传OSS对象存储
// export function exceptionalRecordDetailsUpload(data) {
//   return request({
//     url: `/biz/exceptional/recordDetails/upload`,
//     method: "post",
//     data,
//   });
// }

// 查询异常单位列表
export function exceptionalQueryPageList(data) {
  return request({
    url: '/biz/exceptional/record/queryPageList',
    method: 'post',
    data,
  })
}
// 发送短信示例
export function exceptionalSendSMS(exceptionalRecordId) {
  return request({
    url: '/biz/exceptional/record/sendSMS/' + exceptionalRecordId,
    method: 'get'
  })
}
// 下载大剂量调查登记表
export function downloadLargeDose(data) {
  return request({
    url: `/biz/exceptional/record/downloadLargeDose`,
    method: "post",
    data,
  });
}
// 下载剂量计缺失
export function downloadLost(data) {
  return request({
    url: `/biz/exceptional/record/downloadLost`,
    method: "post",
    data,
  });
}
// 增加异常处理
export function addExceptionalRecord(data) {
  return request({
    // url: '/biz/exceptional/record/addExceptionalRecord/' + taskPersonalResultId + '/' + exceptionType,
    url: `/biz/exceptional/record/addExceptionalRecord`,
    method: 'post',
		data
  })
}
// 获取大剂量标准值
export function getConfiglargeDose() {
  return request({
    url: '/system/config/configKey/sys.report.largeDose',
    method: 'get'
  })
}
// 设置名义剂量
export function setNotionalDose(detailsId, value) {
  return request({
    url: '/biz/exceptional/recordDetails/setNotionalDose/' + detailsId + '/' + value,
    method: "post",
  });
}
// 异常审核
export function exceptionalAudit(data) {
  return request({
    url: `/biz/exceptional/record/audit`,
    method: "post",
    data,
  });
}
// 名义剂量选择列表
export function getNotionalDoseSelectList(params) {
  return request({
    url: `/biz/exceptional/record/getNotionalDoseSelectList`,
    method: "get",
    params,
  });
}
// 确认完成
export function exceptionalComplete(params) {
  return request({
    url: `/biz/exceptional/record/complete`,
    method: "get",
    params,
  });
}
// 获取职业分类字典
export function getOccupational() {
  return request({
    url: `/biz/exceptional/recordDetails/occupational_classification`,
    method: "get",
  });
}